<?#//v.3.1.1
$pageall=parse_url($_GET[thepage]);
if (isset($pageall['query'])) parse_str($pageall['query']);
ob_start();

$pageall['path'] = str_replace('..','',$pageall['path']);

include(realpath("./".$pageall['path']));
$mytext=ob_get_contents();

ob_end_clean();
$mytext=preg_replace("'HREF=\"(.*?)\"'si",'HREF="#" title="\\1"',$mytext);
$mytext=preg_replace("'FORM(.*?)'si",'DIV',$mytext);
echo htmlspecialchars($mytext);
?>